﻿using FluentValidation;
using Nop.Admin.Models.Media;
using Nop.Services.Localization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Nop.Admin.Validators.Media
{
    public class PictureLinkCollectionValidator : AbstractValidator<PictureLinkCollectionModel>
    {
        public PictureLinkCollectionValidator(ILocalizationService localizationService)
        {
            RuleFor(x => x.SystemName).NotEmpty().WithMessage(localizationService.GetResource("Admin.Media.Fields.SystemName.Required"));
        }
    }
}